#ifndef STRINGUTIL_H_INCLUDED
#define STRINGUTIL_H_INCLUDED

#include <string>
#include <sstream>

std::string ToString(int i);
std::string ToString(float f);

int ToInt (const std::string& str);

float ToFloat(const std::string& str);

template <class T> 
bool FromString(T& t, const std::string& string)
{
	std::istringstream stream(string);

	if(stream >> t)
	{
		return true;
	}
	return false;
}

std::string GetDirectory(const std::string &path);

bool LoadSettingsFromFile(const std::string& fileName);

int Hashed(const std::string& str);

#endif